@*
 *Author：jxx
 *Contact：283591387@qq.com
 *Date：2018-07-01
 * 此代码由框架生成，请勿随意更改
 *@
@{
    Layout = "~/Views/Shared/ManagerLayout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <title></title>
</head>
<body>
    <div style=" padding: 0px 5px 0px 2px; height: 100%;">

        <div id="lay-search-panel" class="panel lay-panel" style=" margin-bottom: 5px;border:0px;">
        </div>
        <div id="lay-reslut" class=" lay-reslut ">
            <table id="dataGrid"></table>
        </div>
    </div>
</body>
</html>





<script>
    @{ViewBag.dropDownIds = "pro";}
    var searchData = [[{"columnType":"string","dataSource":optionConfigpro,"displayType":"selectList","text":"省","require":false,"id":"ProvinceName"}]];
    var editData = [];


    var gridParameters = {
        loadMsg: '数据正在加载。。。。',
        //rownumbers: true,
        pageSize: 30,
        pageList: [10, 20, 30, 50, 80, 100, 200, 500, 1000],
        height: 340,
        key:'ProvinceId',
        url: '/vProvinceCity/GetPageData',
        nameSpace:'',
        queryParams: {TableName:'vProvinceCity',sort:'ProvinceId',Foots:' ',Wheres:'{}'},
        pagination: true,
        striped:true,
        fileLink:false,
        richText:false,
        hasSection:false,
        cnName:'省市列表',
        calculateHeight:{id:'#lay-search-panel'},
        calculateWidth:{id:'#lay-search-panel',totalWidth:730,totalCol:4},
    frozenColumns: [[
     { field: 'ck', checkbox: true }
    ]],
    //showFooter: true,
        columns: [[{field:'ProvinceId',title:'ProvinceId',datatype:'int',width:80,hidden:true,require:true,align:'left'},
                       {field:'ProvinceCode',title:'省编号',datatype:'string',width:90,require:true,align:'left',sortable:true},
                       {field:'ProvinceName',title:'省',datatype:'string',width:300,formatter: function (val, row, index) {
    return dataSourcepro.textFormatter(optionConfigpro, val, row, index);
    },
require:true,align:'left'},
                       {field:'CityCode',title:'市编号',datatype:'string',width:90,require:true,align:'left'},
                       {field:'CityName',title:'市',datatype:'string',width:250,require:true,align:'left'}]]
    };

    var $elementGrid;
    window.onload = function () {
        $elementGrid = $('#dataGrid').datagrid(gridParameters);
    }

    var $elementDetailGrid;
    var gridDetailParameters = '';
</script>
